<%@page import="upcweb.modelo.ClsOferta"%>
<%@page import="upcweb.negocio.BsGestionOfertas"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <div class="widget ">
	      			
	      			<div class="widget-header">
	      				<i class="icon-user"></i>
	      				<h3>Ultimas Ofertas de Diversion</h3>
	  				</div> <!-- /widget-header -->
					
					<div class="widget-content">
<table width="100%" cellpadding="0" cellspacing="0"  class="tableCss">
<thead>
<th>Numero</th><th>Servicio</th><th>Creado el</th>
<th>Valido desde</th><th>Valido hasta</th><th>&nbsp;</th>
</thead>
<tbody>
<%
ArrayList<ClsOferta> arrOf = new BsGestionOfertas().getOfertas();
//out.write("Rows : "+arrOf.size());
for(ClsOferta obj: arrOf){
%>
<tr>
<td><%=obj.getNo_Oferta() %></td>
<td><%=obj.getNo_servicio() %></td>
<td><%=obj.getFe_creacion() %></td>
<td><%=obj.getFe_inicio() %></td>
<td><%=obj.getFe_final() %></td>
<td><a href="#" onclick="verOferta('<%=obj.getNo_Oferta() %>');"><img src="img/icons/view_icon.png"></a></td>
</tr>
<%	
}
%>
</tbody>
<tfoot>
<tr><td colspan="6"><img src="img/icons/chan_but_icon.png">&nbsp;Se listan&nbsp;<%=arrOf.size() %>&nbsp;Oferta(s)</td></tr>
</tfoot>
</table>
</div>
</div>